﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;

namespace UniPie
{
	/// <summary>
	/// The class for logging debug events.
	/// </summary>
	internal static class Log
	{
		public static void i(string message)
		{
			DateTime CurrentTime = DateTime.Now;

			Debug.Write("[" +
						CurrentTime.Hour.ToString("00") +
						":" +
						CurrentTime.Minute.ToString("00") +
						":" +
						CurrentTime.Second.ToString("00") +
						"." +
						CurrentTime.Millisecond.ToString("000") +
						"] " +
						message +
						"\n");
		}

		public static void w(string message)
		{
			DateTime CurrentTime = DateTime.Now;

			Debug.Write("[" +
						CurrentTime.Hour.ToString("00") +
						":" +
						CurrentTime.Minute.ToString("00") +
						":" +
						CurrentTime.Second.ToString("00") +
						"." +
						CurrentTime.Millisecond.ToString("000") +
						"] " +
						" * " +
						message +
						" * \n");
		}

		public static void e(string message)
		{
			DateTime CurrentTime = DateTime.Now;

			Debug.Write("[" +
						CurrentTime.Hour.ToString("00") +
						":" +
						CurrentTime.Minute.ToString("00") +
						":" +
						CurrentTime.Second.ToString("00") +
						"." +
						CurrentTime.Millisecond.ToString("000") +
						"] " +
						" !!! " +
						message +
						" !!! \n");
		}

	}
}
